package com.zyz.E_面向对象.J_多态.instanceof关键字;

/**
 * @author: vick
 * @Date: 2025/3/16
 * @Description:
 * @version: 1.0
 */
public class Demo {
    public static void main(String[] args) {
        Person person = new Student();
        System.out.println(person instanceof Student); //true
        System.out.println(person instanceof Person); //true
        //System.out.println(person instanceof AAA); //false
    }
}
